<!--# layout("/common/layout.html",{"jsBase":"/js/admin/catalog/"}){ -->
<style>.saveCatalog-cancel {display:none }</style>
<form class="layui-form layui-form-pane" id="updateForm">
	<div class="layui-row">
		<div class="layui-form-item">
			<label class="layui-form-label">栏目名</label>
			<div class="layui-input-block">
				<input type="text" name="name" autocomplete="off" placeholder="请输入名称" class="layui-input" value="${catalog.name!}">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">栏目名(英文)</label>
			<div class="layui-input-block">
				<input type="text" name="nameEn" autocomplete="off" placeholder="请输入名称" class="layui-input" value="${catalog.nameEn!}">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">栏目名(意文)</label>
			<div class="layui-input-block">
				<input type="text" name="nameIt" autocomplete="off" placeholder="请输入名称" class="layui-input" value="${catalog.nameIt!}">
			</div>
		</div>
		<div class="layui-row">
	        <div class="layui-form-item">
	           	<label class="layui-form-label">关键字</label>
				<div class="layui-input-block">
					<input type="text" name="keywords" class="layui-input"  value="${catalog.keywords! }" />
				</div>
	        </div>
	    </div>
	    <div class="layui-row">
	        <div class="layui-form-item">
	           	<label class="layui-form-label">描述（中文）</label>
				<div class="layui-input-block">
					<input type="text" name="description" class="layui-input"  value="${catalog.description! }" />
				</div>
	        </div>
			<div class="layui-form-item">
				<label class="layui-form-label">描述（英文）</label>
				<div class="layui-input-block">
					<input type="text" name="descriptionEn" class="layui-input"  value="${catalog.descriptionEn! }" />
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">描述（意文）</label>
				<div class="layui-input-block">
					<input type="text" name="descriptionIt" class="layui-input"  value="${catalog.descriptionIt! }" />
				</div>
			</div>
	    </div>
	</div>
	<!--# if (session["core:user"].code == 'admin') { -->
	<div class="layui-row">
		<div class="layui-col-xs12 layui-col-xs4 layui-col-sm6">
			<div class="layui-form-item">
				<label class="layui-form-label">栏目代码</label>
				<div class="layui-input-inline">
					<input type="text" name="code" placeholder="请输入" autocomplete="off" class="layui-input" value="${catalog.code!}">
				</div>
			</div>
		</div>
		<div class="layui-col-xs12 layui-col-xs4 layui-col-sm6">
			<div class="layui-form-item">
				<label class="layui-form-label">栏目地址</label>
				<layui:catalogFunctionInput style='layui-input-inline' name="functionId" id="functionId" value="${catalog.functionId!}"></layui:catalogFunctionInput>
			</div>
		</div>
	</div>
	<div class="layui-row">
		<div class="layui-col-xs12 layui-col-xs4 layui-col-sm6">
			<div class="layui-form-item">
				<label class="layui-form-label">后台内容页面</label>
				<layui:catalogFunctionInput style='layui-input-inline' parentId="14" name="articleFunctionId" id="articleFunctionId" value="${catalog.articleFunctionId!}"></layui:catalogFunctionInput>
			</div>
		</div>
		<div class="layui-col-xs12 layui-col-xs4 layui-col-sm6">
			<div class="layui-form-item">
				<label class="layui-form-label">后台内容列表</label>
				<layui:catalogFunctionInput style='layui-input-inline' parentId="54" name="articleListFunctionId" id="articleListFunctionId" value="${catalog.articleListFunctionId!}"></layui:catalogFunctionInput>
			</div>
		</div>
	</div>
	<!--# } -->
	<div class="layui-row">
		<div class="layui-col-xs12 layui-col-xs12 layui-col-sm12">
			<div class="layui-form-item">
				<label class="layui-form-label">位置</label>
				<layui:simpleDictCheckbox style='layui-input-block' dictType="catalog_position" id="positions" name="positions" catalogId="${catalog.id!}" />
			</div>
		</div>
	</div>
	<div class="layui-row">
		<div class="layui-col-xs12 layui-col-xs6 layui-col-sm6">
			<div class="layui-form-item">
				<label class="layui-form-label">栏目排序</label>
				<div class="layui-input-inline">
					<input type="text" name="seq" id="seq" placeholder="请输入" autocomplete="off" class="layui-input" value="${catalog.seq!}">
				</div>
			</div>
		</div>
		<div class="layui-col-xs12 layui-col-xs6 layui-col-sm6">
			<div class="layui-form-item">
				<label class="layui-form-label">所在父栏目</label>
				<layui:catalogInput style='layui-input-inline' name="parentCatalogId" id="parentCatalogId" value="${catalog.parentCatalogId!parseLong(parameter.cid!0)}"></layui:catalogInput>
			</div>
		</div>
		<div class="layui-col-xs12">
			<div class="layui-form-item">
				<layui:submitButtons class="saveCatalog" />
			</div>
		</div>
	</div>

	<div class="layui-row margin-top">
		<layui:image name="imageId" batchFileUUID="${catalog.imageId!uuid()}" isNew="false" bizId="${catalog.id!}" bizType="CmsCatalog"/>
	</div>

	<div class="layui-row margin-top">
		<layui:attachment name="attachmentId" batchFileUUID="${catalog.attachmentId!uuid()}" isNew="false" bizId="${catalog.id!}" bizType="CmsCatalog" />
	</div>
	<div class="layui-row margin-top">
		<div class="layui-form-item">
			<label class="layui-form-label">内容（中文）</label>
			<div class="layui-clear">
				<textarea  class="kindEditor" name="content" style="display: none">${catalog.content! }</textarea>
			</div>
		</div>
	</div>
	<div class="layui-row">
		<div class="layui-form-item">
			<label class="layui-form-label">内容（英文）</label>
			<div class="layui-clear">
				<textarea  class="kindEditor" name="contentEn" style="display: none">${catalog.contentEn! }</textarea>
			</div>
		</div>
	</div>
	<div class="layui-row">
		<div class="layui-form-item">
			<label class="layui-form-label">内容（意文）</label>
			<div class="layui-clear">
				<textarea  class="kindEditor" name="contentIt" style="display: none">${catalog.contentIt! }</textarea>
			</div>
		</div>
	</div>

	<layui:submitButtons class="saveCatalog" />
	<input type="hidden" name="id" value="${catalog.id!}" />
</form>
<!--#} -->
<script>
	layui.use([ 'edit' ], function() {
		var catalogEdit = layui.edit;
		catalogEdit.init();
	});
</script>

